<template>
  <div class="slot-container">
    <!-- <slot></slot> -->
    <van-button type="primary" @click="click">点击修改</van-button>
    <h5>测试默认插槽</h5>
    <!-- {{ value }} -->
    {{ msg }} ++ {{ info }}
    <slot></slot>
  </div>
</template>

<script>
export default {
  // props: ['value'],
  props: ['msg', 'info'],
  methods: {
    click () {
      this.$emit('update:msg', '子组件进行改变了')
      this.$emit('update:info', '多传输一个可能还不够用')
      // this.$emit('input', '子组件进行改变了')
    }
  }
}
</script>

<style>
.slot-container {
  padding: 30px;
  background-color: yellowgreen;
}
</style>
